package com.xiaoyu.izf.repository;

import com.xiaoyu.izf.model.MerchantShopInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface MerchantShopInfoDao extends JpaRepository<MerchantShopInfo,Integer>, JpaSpecificationExecutor<MerchantShopInfo> {

    MerchantShopInfo findByShopName(String name);

    Page<MerchantShopInfo> findByMerchantId(int merchantId, Pageable pageable);
}
